package cn.itbeien.payment.dao;

import cn.itbeien.entity.TradeOrder;
import cn.itbeien.entity.TradeOrderExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 支付订单表dao
 */
public interface TradeOrderMapper {
    long countByExample(TradeOrderExample example);

    int deleteByExample(TradeOrderExample example);

    int deleteByPrimaryKey(String orderId);

    int insert(TradeOrder row);

    /**
     * 新增支付订单数据，并对字段值做非空判断
     * @param row
     * @return
     */
    int insertSelective(TradeOrder row);

    List<TradeOrder> selectByExample(TradeOrderExample example);

    TradeOrder selectByPrimaryKey(String orderId);

    int updateByExampleSelective(@Param("row") TradeOrder row, @Param("example") TradeOrderExample example);

    int updateByExample(@Param("row") TradeOrder row, @Param("example") TradeOrderExample example);

    int updateByPrimaryKeySelective(TradeOrder row);

    int updateByPrimaryKey(TradeOrder row);

    int updateStatusByOrderId(@Param("orderId")String orderId,@Param("status")String status);
}